package cn.nuc.edu.onlinestore.entity;

/**
 * 系统角色实体
 * 
 * @author 王凯
 * 
 */
public class Sysrole {

	/**
	 * 角色ID
	 */
	private Integer roleid;
	
	/**
	 * 角色名称
	 */
	private String rolename;
	
	/**
	 * 角色状态
	 */
	private Integer rolestate;
	
	/**
	 * 角色说明
	 */
	private String roledesc;

	public Integer getRoleid() {
		return roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public Integer getRolestate() {
		return rolestate;
	}

	public void setRolestate(Integer rolestate) {
		this.rolestate = rolestate;
	}

	public String getRoledesc() {
		return roledesc;
	}

	public void setRoledesc(String roledesc) {
		this.roledesc = roledesc;
	}

	@Override
	public String toString() {
		return "Sysrole [roleid=" + roleid + ", rolename=" + rolename
				+ ", rolestate=" + rolestate + ", roledesc=" + roledesc + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((roleid == null) ? 0 : roleid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Sysrole other = (Sysrole) obj;
		if (roleid == null) {
			if (other.roleid != null)
				return false;
		} else if (!roleid.equals(other.roleid))
			return false;
		return true;
	}
}
